package com.zed.code.model;

import java.io.Serializable;
import java.util.Date;

/**
 * ChargerInfo
 * @author 
 */
public class Chargerinfo implements Serializable {
    private Integer id;

    private Integer stationid;

    private String deviceid;

    private String productdate;

    private String manufacturer;

    private String softwareversion;

    private String maxvoltage;

    private String minvoltage;

    private String maxcurrent;

    private String power;

    private String location;

    private String nameplate;

    private String validatecode;

    private Date uploaddate;

    private String videokey;

    private String qrurl;

    private Integer devicetype;

    private Integer portcount;

    private String credentials;

    private String remark;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStationid() {
        return stationid;
    }

    public void setStationid(Integer stationid) {
        this.stationid = stationid;
    }

    public String getDeviceid() {
        return deviceid;
    }

    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }

    public String getProductdate() {
        return productdate;
    }

    public void setProductdate(String productdate) {
        this.productdate = productdate;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getSoftwareversion() {
        return softwareversion;
    }

    public void setSoftwareversion(String softwareversion) {
        this.softwareversion = softwareversion;
    }

    public String getMaxvoltage() {
        return maxvoltage;
    }

    public void setMaxvoltage(String maxvoltage) {
        this.maxvoltage = maxvoltage;
    }

    public String getMinvoltage() {
        return minvoltage;
    }

    public void setMinvoltage(String minvoltage) {
        this.minvoltage = minvoltage;
    }

    public String getMaxcurrent() {
        return maxcurrent;
    }

    public void setMaxcurrent(String maxcurrent) {
        this.maxcurrent = maxcurrent;
    }

    public String getPower() {
        return power;
    }

    public void setPower(String power) {
        this.power = power;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getNameplate() {
        return nameplate;
    }

    public void setNameplate(String nameplate) {
        this.nameplate = nameplate;
    }

    public String getValidatecode() {
        return validatecode;
    }

    public void setValidatecode(String validatecode) {
        this.validatecode = validatecode;
    }

    public Date getUploaddate() {
        return uploaddate;
    }

    public void setUploaddate(Date uploaddate) {
        this.uploaddate = uploaddate;
    }

    public String getVideokey() {
        return videokey;
    }

    public void setVideokey(String videokey) {
        this.videokey = videokey;
    }

    public String getQrurl() {
        return qrurl;
    }

    public void setQrurl(String qrurl) {
        this.qrurl = qrurl;
    }

    public Integer getDevicetype() {
        return devicetype;
    }

    public void setDevicetype(Integer devicetype) {
        this.devicetype = devicetype;
    }

    public Integer getPortcount() {
        return portcount;
    }

    public void setPortcount(Integer portcount) {
        this.portcount = portcount;
    }

    public String getCredentials() {
        return credentials;
    }

    public void setCredentials(String credentials) {
        this.credentials = credentials;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Chargerinfo other = (Chargerinfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStationid() == null ? other.getStationid() == null : this.getStationid().equals(other.getStationid()))
            && (this.getDeviceid() == null ? other.getDeviceid() == null : this.getDeviceid().equals(other.getDeviceid()))
            && (this.getProductdate() == null ? other.getProductdate() == null : this.getProductdate().equals(other.getProductdate()))
            && (this.getManufacturer() == null ? other.getManufacturer() == null : this.getManufacturer().equals(other.getManufacturer()))
            && (this.getSoftwareversion() == null ? other.getSoftwareversion() == null : this.getSoftwareversion().equals(other.getSoftwareversion()))
            && (this.getMaxvoltage() == null ? other.getMaxvoltage() == null : this.getMaxvoltage().equals(other.getMaxvoltage()))
            && (this.getMinvoltage() == null ? other.getMinvoltage() == null : this.getMinvoltage().equals(other.getMinvoltage()))
            && (this.getMaxcurrent() == null ? other.getMaxcurrent() == null : this.getMaxcurrent().equals(other.getMaxcurrent()))
            && (this.getPower() == null ? other.getPower() == null : this.getPower().equals(other.getPower()))
            && (this.getLocation() == null ? other.getLocation() == null : this.getLocation().equals(other.getLocation()))
            && (this.getNameplate() == null ? other.getNameplate() == null : this.getNameplate().equals(other.getNameplate()))
            && (this.getValidatecode() == null ? other.getValidatecode() == null : this.getValidatecode().equals(other.getValidatecode()))
            && (this.getUploaddate() == null ? other.getUploaddate() == null : this.getUploaddate().equals(other.getUploaddate()))
            && (this.getVideokey() == null ? other.getVideokey() == null : this.getVideokey().equals(other.getVideokey()))
            && (this.getQrurl() == null ? other.getQrurl() == null : this.getQrurl().equals(other.getQrurl()))
            && (this.getDevicetype() == null ? other.getDevicetype() == null : this.getDevicetype().equals(other.getDevicetype()))
            && (this.getPortcount() == null ? other.getPortcount() == null : this.getPortcount().equals(other.getPortcount()))
            && (this.getCredentials() == null ? other.getCredentials() == null : this.getCredentials().equals(other.getCredentials()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStationid() == null) ? 0 : getStationid().hashCode());
        result = prime * result + ((getDeviceid() == null) ? 0 : getDeviceid().hashCode());
        result = prime * result + ((getProductdate() == null) ? 0 : getProductdate().hashCode());
        result = prime * result + ((getManufacturer() == null) ? 0 : getManufacturer().hashCode());
        result = prime * result + ((getSoftwareversion() == null) ? 0 : getSoftwareversion().hashCode());
        result = prime * result + ((getMaxvoltage() == null) ? 0 : getMaxvoltage().hashCode());
        result = prime * result + ((getMinvoltage() == null) ? 0 : getMinvoltage().hashCode());
        result = prime * result + ((getMaxcurrent() == null) ? 0 : getMaxcurrent().hashCode());
        result = prime * result + ((getPower() == null) ? 0 : getPower().hashCode());
        result = prime * result + ((getLocation() == null) ? 0 : getLocation().hashCode());
        result = prime * result + ((getNameplate() == null) ? 0 : getNameplate().hashCode());
        result = prime * result + ((getValidatecode() == null) ? 0 : getValidatecode().hashCode());
        result = prime * result + ((getUploaddate() == null) ? 0 : getUploaddate().hashCode());
        result = prime * result + ((getVideokey() == null) ? 0 : getVideokey().hashCode());
        result = prime * result + ((getQrurl() == null) ? 0 : getQrurl().hashCode());
        result = prime * result + ((getDevicetype() == null) ? 0 : getDevicetype().hashCode());
        result = prime * result + ((getPortcount() == null) ? 0 : getPortcount().hashCode());
        result = prime * result + ((getCredentials() == null) ? 0 : getCredentials().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", stationid=").append(stationid);
        sb.append(", deviceid=").append(deviceid);
        sb.append(", productdate=").append(productdate);
        sb.append(", manufacturer=").append(manufacturer);
        sb.append(", softwareversion=").append(softwareversion);
        sb.append(", maxvoltage=").append(maxvoltage);
        sb.append(", minvoltage=").append(minvoltage);
        sb.append(", maxcurrent=").append(maxcurrent);
        sb.append(", power=").append(power);
        sb.append(", location=").append(location);
        sb.append(", nameplate=").append(nameplate);
        sb.append(", validatecode=").append(validatecode);
        sb.append(", uploaddate=").append(uploaddate);
        sb.append(", videokey=").append(videokey);
        sb.append(", qrurl=").append(qrurl);
        sb.append(", devicetype=").append(devicetype);
        sb.append(", portcount=").append(portcount);
        sb.append(", credentials=").append(credentials);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}